package com.rran.study.designpattern.factory.prototype;

import lombok.Data;
import lombok.Setter;

/**
 * @author yy
 * @Type Realizetype.java
 * @Desc
 * @date 2020/7/22 17:50
 */
@Data
public class Realizetype implements Cloneable{

    private String name ;


    Realizetype() {
        System.out.println("具体原型创建成功！");
    }

    @Override
    public Object clone() throws CloneNotSupportedException {
        System.out.println("具体原型复制成功！");
        return (Realizetype) super.clone();
    }
}
